//
//  WNLockModel.swift
//  WNLockDemo
//
//  Created by 裴威 on 01/09/2018.
//  Copyright © 2018 wunu. All rights reserved.
//

import Foundation
import ObjectMapper

struct WNLockModel {
    var id: Int?
    var state: Int?
    var name: String?
    var model: Int?
    var mac: String?
    var image: String?
    var battery: Int?
    var note: String?
    var memberGroup: Int?
    var memberState: Int?
}

extension WNLockModel: Mappable {
    init?(map: Map) {
    }
    mutating func mapping(map: Map) {
        id <- map["id"]
        state <- map["state"]
        name <- map["name"]
        model <- map["model"]
        mac <- map["mac"]
        image <- map["image"]
        battery <- map["battery"]
        note <- map["note"]
        memberGroup <- map["memberGroup"]
        memberState <- map["memberState"]
    }
}
